<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.g-fixed{
			position: fixed;
			right: .5%;
			top: 50%;
			width: 100px;
			height: 100px;
			background: orange;

		}
	</style>
</head>
<body  style="height: 2000px;">

<div class='g-fixed'></div>

</body>
</html>